<template>
  <el-carousel :interval="4000" type="card" height="500px">
    <el-carousel-item v-for="(img, index) in showvideo" :key="index">
<!--      <router-link :to="{name:'VideoDatail',params:{vid:simg.vid}}">-->
<!--      <img :src="img" width="1000px" height="500px">-->
<!--      </router-link>-->
      <img :src="img" width="1000px" height="500px">
    </el-carousel-item>
  </el-carousel>
</template>

<script>
    export default {
        data() {
            return {
                activeIndex: '1',
                activeIndex2: '1',
                showvideo:[]
            }; 
        },
        methods: {
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            }
        },
      mounted() {
      // this.$axios.get('videoslList.do').then(response => {
      //   this.showvideo = response.data
      //   console.log(this.videos);
      // }).catch(function (error) {
      //   console.log(error);
      // })
        this.showvideo = [
            "https://tse1-mm.cn.bing.net/th/id/R-C.6042575fb3fa7c52ebdb4549d086d79d?rik=hZm3UUQpS6e2vQ&riu=http%3a%2f%2fimg.jutoula.com%2f202107%2f02%2f170759507.jpg&ehk=OMfSY20Tnr%2b23dSAOCiIr7gIxgP6bjGjQOWnMY%2fX6Go%3d&risl=&pid=ImgRaw&r=0&sres=1&sresct=1",
            "https://tse1-mm.cn.bing.net/th/id/R-C.6cc20ca9dad13e374436566fefd1a927?rik=8Wc0SJ8H%2fGEzkQ&riu=http%3a%2f%2fi0.hdslb.com%2fbfs%2farchive%2f76ce572806aacb209fa62d414e65ef7a5834a6ec.jpg&ehk=POkFSLhPW%2f4wLgJ6b0a6bwknDWwJo642RFIwUqx1umw%3d&risl=&pid=ImgRaw&r=0",
            "https://tse1-mm.cn.bing.net/th/id/R-C.53f9163f7c75d062fd18020889808eff?rik=UGRNL0w%2bG60VQg&riu=http%3a%2f%2fp2.qhimg.com%2ft017660b48c1c2bc680.jpg%3fsize%3d1146x716&ehk=Spk15PhSrYkfLK44SlS9K6XQeVFkdNsE9konsexgeSs%3d&risl=&pid=ImgRaw&r=0"
        ]

    }
    }
</script>



<style scoped>
  .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 200px;
    margin: 0;
  }
  
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
</style>